package org.jeecg.modules.basedata.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.entity.basedata.BaseSeal;
import org.jeecg.modules.basedata.mapper.BaseSealMapper;
import org.jeecg.modules.basedata.service.IBaseSealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 用章配置
 * @Author: jeecg-boot
 * @Date:   2021-01-10
 * @Version: V1.0
 */
@Service
public class BaseSealServiceImpl extends ServiceImpl<BaseSealMapper, BaseSeal> implements IBaseSealService {

    @Autowired
    private BaseSealMapper baseSealMapper;

    @Override
    public List<BaseSeal> findPage(Page<BaseSeal> page, BaseSeal baseSeal) {
        return baseSealMapper.findPage(page, baseSeal);
    }

    @Override
    public BaseSeal isSole(String departId, String sealType) {
        return baseSealMapper.isSole(departId, sealType);
    }
}
